package com.snj.bestdealer.request;

import java.io.Serializable;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;

import com.snj.bestdealer.R;
import com.snj.bestdealer.lib.CustomHttpClient;
import com.snj.bestdealer.lib.Global;

public class ReceivedRequestItem {
	
	String no = "";
	Bitmap brandlogo = null;
	String paytype = "";
	String requestdate = "";
	String location = "";
	String name = "";
	String vehicle = "";
	String options = "";
	String openterm = "";
	String requestcnt = "";
	
	boolean isopenphone = false;
	boolean isopenemail = false;
	
	public ReceivedRequestItem()
	{
		
	}
	
	public ReceivedRequestItem(String _no, Bitmap _logo, String _paytype, String _reqdate, String _loc, String _name, String _vehicle, String _options, boolean isphone, boolean isemail, String openterm, String _requestcnt, Resources res)
	{
		// TODO Auto-generated constructor stub
		
		this.no = _no;
		this.brandlogo = _logo;
		this.paytype = _paytype;
		this.requestdate = _reqdate;
		this.location = _loc;
		this.name = _name;
		this.vehicle = _vehicle;
		this.options = _options;
		this.openterm = openterm;
		this.requestcnt = _requestcnt;
		
		this.isopenphone = isphone;
		this.isopenemail = isemail;
		
		if(brandlogo == null)
			brandlogo = BitmapFactory.decodeResource(res, R.drawable.etc);
	}
	
	public Bitmap GetLogo()
	{
		return this.brandlogo;
	}	
	
	public String GetNo()
	{
		return this.no;
	}
	
	public String GetPayType()
	{
		return this.paytype;
	}
	
	public String GetRequstDate()
	{
		return this.requestdate;
	}
	
	public String GetLocation()
	{
		return this.location;
	}
	
	public String GetName()
	{
		return this.name;
	}
	
	public String GetVehicle()
	{
		return this.vehicle;
	}
	
	public String GetOptions()
	{
		return this.options;
	}
	
	public boolean GetIsOpenPhone()
	{
		return this.isopenphone;
	}
	
	public boolean GetIsOpenEmail()
	{
		return this.isopenemail;
	}
	
	public String GetOpenTerm()
	{
		return this.openterm;
	}
	
	public String GetRequestCnt()
	{
		return this.requestcnt;
	}
}
